/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/26 15:41:10
 */
Ext.define('Monkey.view.role.RoleModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.vm-role',

    data: {
        name: '',
        role: '',
        description: '',
        id: 0,
        isAdd: false
    },

    setModelData: function (data) {
        this.data.id = data.id;
        this.data.name = data.name;
        this.data.role = data.role;
        this.data.description = data.description;
    }
});